import Taro from '@tarojs/taro-rn';
import * as tslib_1 from "tslib";
import React from 'react';
import { Component } from "@tarojs/taro-rn";
import { View, Image, Text } from "@tarojs/components-rn";
import { getRuntime } from "../../utils/common";
import indexStyleSheet from "./index_styles";
import icon_37 from '../../assets/img/icon_41.png';
import icon_38 from '../../assets/img/icon_42.png';
import icon_39 from '../../assets/img/icon_43.png';
import icon_40 from '../../assets/img/icon_44.png';
import { inject, observer } from "@tarojs/mobx-rn";
var _styleSheet = indexStyleSheet;
let Company = class Company extends Component {
  constructor() {
    super();
  }
  componentWillMount() {
    Taro.setNavigationBarTitle({ title: '企业信用中心' });
  }
  handelRouter(url = '/pages/index/index') {
    if (!getRuntime().getToken()) {
      getRuntime().navigateTo('/pages/login/login');
      return;
    }
    getRuntime().navigateTo(url);
  }
  // 外链跳转
  link(url) {
    window.location.href = url;
  }
  onScroll() {}
  render() {
    return <View style={_styleSheet["business-center"]}>
       <View style={_styleSheet["business-theme"]}>
         <View onClick={this.handelRouter.bind(this, '/pages/company_credit/page1')} style={[_styleSheet["theme"], _styleSheet["theme-01"]]}>
           <View style={_styleSheet["content"]}>
             <Image src={icon_37} style={_styleSheet["theme-icon"]} />
             <View style={_styleSheet["theme-info"]}>
               <Text style={_styleSheet["title"]}>ISO三大体系</Text>
               <Text style={_styleSheet["num"]}>国际质量管理体系认证</Text>
             </View>
             <View style={[_styleSheet["btn-banli"], _styleSheet["btn1"]]}>立即办理></View>
           </View>
         </View>

         <View onClick={this.handelRouter.bind(this, '/pages/company_credit/page2')} style={[_styleSheet["theme"], _styleSheet["theme-02"]]}>
           <View style={_styleSheet["content"]}>
             <Image src={icon_38} style={_styleSheet["theme-icon"]} />
             <View style={_styleSheet["theme-info"]}>
               <Text style={_styleSheet["title"]}>企业3A信用等级</Text>
               <Text style={_styleSheet["num"]}>提升企业综合实力与竞争力</Text>
             </View>
             <View style={[_styleSheet["btn-banli"], _styleSheet["btn2"]]}>立即办理></View>
           </View>
         </View>

         <View style={[_styleSheet["theme"], _styleSheet["theme-03"]]}>
           <View style={_styleSheet["content"]}>
             <Image src={icon_39} style={_styleSheet["theme-icon"]} />
             <View style={_styleSheet["theme-info"]}>
               <Text style={_styleSheet["title"]}>全网信用信息查询</Text>
               <Text style={_styleSheet["num"]}>褒扬诚信 惩戒失信</Text>
             </View>
             <View onClick={this.link.bind(this, 'https://www.creditchina.gov.cn/')} style={[_styleSheet["btn-banli"], _styleSheet["btn3"]]}>点击进入></View>
           </View>
         </View>

         <View style={[_styleSheet["theme"], _styleSheet["theme-04"]]}>
           <View style={_styleSheet["content"]}>
             <Image src={icon_40} style={_styleSheet["theme-icon"]} />
             <View style={_styleSheet["theme-info"]}>
               <Text style={_styleSheet["title"]}>企查查</Text>
               <Text style={_styleSheet["num"]}>企业信息查询工具</Text>
             </View>
             <View onClick={this.link.bind(this, 'https://m.qichacha.com/')} style={[_styleSheet["btn-banli"], _styleSheet["btn4"]]}>点击进入></View>
           </View>
         </View>
       </View>
     </View>;
  }
};
Company = tslib_1.__decorate([inject("stores"), observer], Company);
export default Company;